import {createApp} from 'vue';
import App from './App.vue';
import router from './router';
import ElementPlus from 'element-plus';
import zhCn from 'element-plus/dist/locale/zh-cn.mjs';
import 'element-plus/dist/index.css';
import {createPinia} from 'pinia';
import './style.css';
import dayjs from 'dayjs';
import 'dayjs/locale/zh-cn';
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';

dayjs.locale('zh-cn');

const pinia = createPinia()
    .use(piniaPluginPersistedstate);

const app = createApp(App);
app.use(router);
app.use(ElementPlus, {locale: zhCn});
app.use(pinia);
app.mount('#app');